package com.leedsoft.controller.vo;

/**
 * Created by leeds on 2017/6/19.
 */
public class PageVo {
    private int pageNumber = 1;//页码
    private int pageSize = 10;//分页大小
    private int pageOffset;

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        if (pageNumber < 1) pageNumber = 1;
        this.pageNumber = pageNumber;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
    public Integer getPageOffset() {
        return (pageNumber-1)*pageSize;
    }
}
